import Vue from 'vue'
import VueRouter from 'vue-router'


import Discover from '../views/Discover.vue'
import Mymusic  from '../views/Mymusic.vue'
import Attention  from '../views/Attention.vue'
import Shopping  from '../views/Shopping.vue'
import Musician  from '../views/Musician.vue'
import Download from '../views/Download.vue'
import NotFound from '../views/NotFound.vue'
 
Vue.use(VueRouter)


const router = new VueRouter({
  routes: [
    {
      path: '/',
      redirect : '/discover'
    },
    {
      path: '/discover',
      component : Discover
    },
    {
      path: '/mymusic',
      component : Mymusic
    },
    {
      path: '/attention',
      component : Attention
    },
    {
      path: '/shopping',
      component : Shopping
    },
    {
      path: '/musician',
      component : Musician
    },
    {
      path: '/download',
      component : Download
    },
    {
      path: '*',
      component : NotFound
    }
  ],
  
})




export default router